package com.etogc.groupchat.main;

import com.etogc.http.VolleyHttpUtil;
import com.etogc.util.GcUrl;


/**
 * 首頁請求
 */
public class MainBiz {

    public static void getGroupInfo(String group_id, VolleyHttpUtil.ResponseCallBack callback) {
        String url = GcUrl.GET_GROUP_INFO + "/" + group_id;
        VolleyHttpUtil.getInstance().getWithCallback(url, callback);
    }


    public static void getUserInfo(String userId, VolleyHttpUtil.ResponseCallBack callback) {
        if (!"100000".equals(userId)) {
            String url = GcUrl.CHECK_USER + userId;
            VolleyHttpUtil.getInstance().getWithCallback(url, callback);
        }
    }

}
